﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace BluetoothMachine.Controls
{
    /// <summary>
    /// AreaControl.xaml 的交互逻辑
    /// </summary>
    public partial class AreaControl : UserControl
    {
        public AreaControl()
        {
            InitializeComponent();
        }
        public string Title
        {
            set => SetValue(MyTitleProperty, value);
            get => (string)GetValue(MyTitleProperty);
        }
        public static readonly DependencyProperty MyTitleProperty =
            DependencyProperty.Register("Title", typeof(string), typeof(AreaControl), new FrameworkPropertyMetadata("区域"));

        public object TemplateContent
        {
            set => SetValue(MyContentProperty, value);
            get => GetValue(MyContentProperty);
        }
        public static readonly DependencyProperty MyContentProperty =
            DependencyProperty.Register("TemplateContent", typeof(object), typeof(AreaControl), new FrameworkPropertyMetadata(new object()));
    }
}
